import request from '@/utils/request'

// 查询项目公告列表
export function listProjectAnnouncement(query) {
  return request({
    url: '/project/projectAnnouncement/list',
    method: 'get',
    params: query
  })
}

// 查询项目公告详细
export function getProjectAnnouncement(announcementId) {
  return request({
    url: '/project/projectAnnouncement/' + announcementId,
    method: 'get'
  })
}

// 新增项目公告
export function addProjectAnnouncement(data) {
  return request({
    url: '/project/projectAnnouncement',
    method: 'post',
    data: data
  })
}

// 修改项目公告
export function updateProjectAnnouncement(data) {
  return request({
    url: '/project/projectAnnouncement',
    method: 'put',
    data: data
  })
}

// 删除项目公告
export function delProjectAnnouncement(announcementId) {
  return request({
    url: '/project/projectAnnouncement/' + announcementId,
    method: 'delete'
  })
}
